package org.hq.web.sql.pojo;

public class WebUser {
    private Integer id;
    private String userid;// 用户id用于登录
    private String username;//用户昵称
    private String password;//用户密码
    private String granted;//角色权限分组
    //用户登录凭证
    private String token;//用户登录凭证 token 密钥
    public WebUser() {
    }
    /**
     *
     * @param userid 用户id
     * @param username 用户昵称
     * @param password 用户密码
     * @param granted 角色权限分组
     */
    public WebUser(String userid, String username, String password, String granted) {
        this.userid = userid;
        this.username = username;
        this.password = password;
        this.granted = granted;
    }




    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getGranted() {
        return granted;
    }

    public void setGranted(String granted) {
        this.granted = granted;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    @Override
    public String toString() {
        return "WebUser{" +
                "id=" + id +
                ", userid='" + userid + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", granted='" + granted + '\'' +
                ", token='" + token + '\'' +
                '}';
    }
}
